#include"DListNode.h"

void test1() {
	ListNode*plist = InitList();
	pushrear(plist, 1);
	pushrear(plist, 2);
	pushrear(plist, 3);
	pushrear(plist, 4);
	PrintList(plist);

	poprear(plist);
	poprear(plist);
	PrintList(plist);
}
void test2() {
	ListNode* plist = InitList();
	pushfront(plist, 1);
	pushfront(plist, 2);
	pushfront(plist, 3);
	pushfront(plist, 4);
	PrintList(plist);

	ListNode* ret = FindNode(plist, 3);
	Insert(plist, ret, 5);
	PrintList(plist);
	Earse(plist, ret);
	ret = NULL;
	PrintList(plist);
	Destroy(plist);
	plist = NULL;
}
int main() {
    test1();
	test2();
	return 0;
}